<?php slot('title', $paper->getTitle()." - 五行测评") ?>
<?php slot('keywords', "五行,五行测评,五行人格,五行管理,五行养生") ?>
<?php slot('description', "五行测评 - 帮你寻找困惑的答案！") ?>

<div class="wrap test" style="margin-bottom: 100px;">
  <h2 style="font-family: microsoft yahei; font-size: 28px; line-height: 30px; text-align: center; padding: 0px 0 10px;">
    <?php echo $paper->getTitle() ?>
  </h2>
  <h3>说明</h3>
  <ul class="tips" style="background: #FAFAFA;">
    <li>下面共有105个论述；</li>
    <li>在非常适合您的选项后面选是，在不符合、不完全符合、部分符合或不好确定的选项后面选否；</li>
    <li>需要说明的是，这个测试结果只是一个参考结论，更精确的判断还需要在深入的当面交流或心理咨询后获得。</li>
  </ul>
  <h3>题目</h3>
  <?php if (isset($isValid) && !$isValid): ?>
  <h4 style="color: #F00; font-size: 14px; padding: 0 0 10px 30px;">您还没有完成答题呢！</h4>
  <?php endif ?>
  <div class="subject">
    <form action="<?php echo url_for('@paper?id='.$sf_params->get('id')) ?>" method="post">
      <?php foreach ($paper->getQuestions() as $question): ?>
      <dl>
        <dt<?php isset($isValid) && !$isValid && !isset($data[$question->getId()]) and print ' class="miss"' ?>><?php echo $question ?></dt>
        <dd>
          <input id="question_<?php echo $question->getId() ?>_yes" 
            type="radio" value="1" <?php if (isset($data[$question->getId()]) && $data[$question->getId()] === '1'): ?>checked="checked"<?php endif ?>
            name="question[<?php echo $question->getId() ?>]" />
          <label for="question_<?php echo $question->getId() ?>_yes">是</label>
          <input id="question_<?php echo $question->getId() ?>_no" 
            type="radio" value="0" <?php if (isset($data[$question->getId()]) && $data[$question->getId()] === '0'): ?>checked="checked"<?php endif ?>
            name="question[<?php echo $question->getId() ?>]" />
          <label for="question_<?php echo $question->getId() ?>_no">否</label>
        </dd>
      </dl>
      <?php endforeach ?>
      <input type="submit" class="button-01 mt-20 ml-30" value="" />
    </form>
  </div>
</div>
